
import time

class AppletDependentHandle:

    def __init__(self):
        pass

    def get_element_all(self, driver, *args):
        return driver.get_element(*args)

    def get_elements_all(self, driver, *args):
        return driver.get_elements(*args)

    def click(self, element, *args):
        element.tap()

    def execute_script(self, driver, *operation):
        pass

    def forced_wait(self, driver, *args):
        time.sleep(args[0])

    def slide(self, driver, *args):
        for i in range(args[2]):
            driver.scroll_to(args[0], args[1])

    def input(self, element, *args):
        element.input(args[0])

    def empty(self, element, *args):
        element.input()

    def screenshot(self, driver, *path):
        driver.save_screenshot(*path)











